﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Cafe.Models
{
    public sealed class Singleton
    {
        private static readonly Singleton instance = new Singleton();

        public List<CafePlace> Cafes { get; set; }
        public List<Review> Reviews {get; set;}

        static Singleton() { }

        private Singleton()
        {
            Cafes = new List<CafePlace>() 
            {
                new CafePlace("De Angelinos", "Little Italy", "Italian"),
                new CafePlace("ChinaStop", "Downtown", "Chinese"),
                new CafePlace("BeefEater", "Boonies", "All-American"),
                new CafePlace("The spot", "The spot", "Food"),
                new CafePlace("Taco-taco", "Mexicana", "Mexican"),
                new CafePlace("Veggies", "Garden", "Vegetarian")

            };
            Reviews = new List<Review>()
            {
                new Review(0, "Sam", Rating.Excellent, "I love spagetti!"),
                new Review(1, "Terry", Rating.Good, "Needs English menu."),
                new Review(2, "Martin", Rating.Terrible, "Wood chips in the BBQ sauce!!")
            };

        }
        public static Singleton Instance
        {
            get
            {
                return instance;
            }


        }
     

    }
}